TITLE: "Can Appeals For Peace Promote Tolerance and Mitigate Support for Extremism? Evidence from an Experiment with Adolescents in Burkina Faso."
AUTHORS: Allison Grossman, William G. Nomikos, Niloufer Siddiqui.
JOURNAL: Journal of Experimental Political Science.
DATE CREATED: December 10th, 2021.
CORRESPONDING AUTHOR: William G. Nomikos (wnomikos@wustl.edu).


REPLICATION INSTRUCTIONS: 

(1) Unzip the gns_jeps_replication.zip file. You should now have a folder entitled "gns_jeps_replication" with the following contents:
	- acled_bf.csv (ACLED data for Burkina Faso)
	- bf_idmc.csv (IDMC data for Burkina Faso)
	- bfo_r5_data.sav (Afrobarometer round 5 data for Burkina Faso)
	- bfo_r7_data.sav (Afrobarometer round 5 data for Burkina Faso)
	- gns_jeps_main.csv (Our main dataset)
	- gns_jeps_replication_readme.txt (this file)
	- gns_jeps_replication.R (the replication script in R)
	- gns_jeps_sample2.csv (our second sample dataset)
	- pew_2015.sav (Pew polling data from 2015)

You need all of these files to replicate our data and run gns_jeps_replication.R successfully!

(2) Open gns_jeps_replication.R (optimized for RStudio).
(3) Set working directory to your preferred working directory (should have all the above data).
(4) Before running the script, make sure you have all of the necessary libraries. If not, install them using the install.packages command in R.
(5) Run the two user-defined functions to make sure that they install correctly.
(6) Run the script. 

Notes:
(1) The script produces *all* of the figures in the article and saves them as fig1.png, fig2.png, fig3.png. 
(2) It also produces all of figures in the appendix, saving them as figA1.png-figA9.png. 
(3) We have annotated the script with different RStudio headers to allow for easy navigation.

